Product Code Database
Example Keywords: house -ocarina $88-130
   » » Wiki: Newton Fractal
Tag Wiki 'Newton Fractal'.
Tag

The Newton fractal is a in the which is characterized by Newton's method applied to a fixed \mathbb{C} or transcendental function. It is the of the meromorphic function which is given by Newton's method. When there are no attractive cycles (of order greater than 1), it divides the complex plane into regions , each of which is associated with a root of the polynomial, . In this way the Newton fractal is similar to the , and like other fractals it exhibits an intricate appearance arising from a simple description. It is relevant to numerical analysis because it shows that (outside the region of quadratic convergence) the Newton method can be very sensitive to its choice of start point.

points of the complex plane are associated with one of the roots of a given polynomial in the following way: the point is used as starting value for Newton's iteration , yielding a sequence of points If the sequence converges to the root , then was an element of the region . However, for every polynomial of degree at least 2 there are points for which the Newton iteration does not converge to any root: examples are the boundaries of the basins of attraction of the various roots. There are even polynomials for which open sets of starting points fail to converge to any root: a simple example is , where some points are attracted by the cycle rather than by a root.

An open set for which the iterations converge towards a given root or cycle (that is not a fixed point), is a for the iteration. The complementary set to the union of all these, is the Julia set. The Fatou sets have common boundary, namely the Julia set. Therefore, each point of the Julia set is a point of accumulation for each of the Fatou sets. It is this property that causes the fractal structure of the Julia set (when the degree of the polynomial is larger than 2).

To plot images of the fractal, one may first choose a specified number of complex points and compute the coefficients of the polynomial

p(z)=z^d+p_1z^{d-1}+\cdots+p_{d-1}z+p_d:=(z-\zeta_1)(z-\zeta_2)\cdots(z-\zeta_d).
Then for a rectangular lattice
z_{mn} = z_{00} + m \, \Delta x + in \, \Delta y; \quad m = 0, \ldots, M - 1; \quad n = 0, \ldots, N - 1
of points in \mathbb{C}, one finds the index of the corresponding root and uses this to fill an raster grid by assigning to each point a color . Additionally or alternatively the colors may be dependent on the distance , which is defined to be the first value such that for some previously fixed small .


Generalization of Newton fractals
A generalization of Newton's iteration is

z_{n+1}=z_n- a \frac{p(z_n)}{p'(z_n)}

where is any . The special choice corresponds to the Newton fractal. The fixed points of this map are stable when lies inside the disk of radius 1 centered at 1. When is outside this disk, the fixed points are locally unstable, however the map still exhibits a fractal structure in the sense of . If is a polynomial of degree , then the sequence is provided that is inside a disk of radius centered at .

More generally, Newton's fractal is a special case of a .

Series : File:JMB_Newton_Z^3_-_A_=_0_(Tipus=_5003)(_1600x_1200)_.00001_.00001_1_3_7_Pal=_0_1.2_Fc=_0_1_(Iter=_100)Seg=_30.jpg| File:JMB_Newton_Z^3_-_A_=_0_(Tipus=_5003)(_1600x_1200)_.00001_.00001_2_2.1_7_Pal=_8_2_Fc=_0_1_(Iter=_200)Seg=_60.jpg| File:JMB_Newton_Z^4_-_A_=_0_(Tipus=_5004)(_1600x_1200)_.00001_.00001_1_3_7_Pal=_0_1.6_Fc=_0_1_(Iter=_100)Seg=_31.jpg| File:JMB_Newton_Z^4_-_A_=_0_(Tipus=_5004)(_1600x_1200)_.00001_.00001_2_0_7_Pal=_0_13_Fc=_0_1_(Iter=_200)Seg=_62.jpg| File:JMB_Newton_Z^5_-_A_=_0_(Tipus=_5005)(_1600x_1200)_.00001_.00001_1_3_7_Pal=_0_1_Fc=_0_1_(Iter=_100)Seg=_32.jpg| File:JMB_Newton_Z^5_-_A_=_0_(Tipus=_5005)(_1600x_1200)_.00001_.00001_2_0_10_Pal=_13_15_Fc=_0_1_(Iter=_200)Seg=_62.jpg| File:JMB_Newton_Z^6_-_A_=_0_(Tipus=_5006)(_1600x_1200)_.00001_.00001_1_3_7_Pal=_0_1_Fc=_0_1_(Iter=_100)Seg=_31.jpg| File:JMB_Newton_Z^7_-_A_=_0_(Tipus=_5007)(_1600x_1200)_.00001_.00001_1_3_7_Pal=_0_1_Fc=_0_1_(Iter=_100)Seg=_32.jpg| File:JMB_Newton_Z^8_-_A_=_0_(Tipus=_5008)(_1600x_1200)_.00001_.00001_1_3_7_Pal=_0_1_Fc=_0_1_(Iter=_100)Seg=_33.jpg| File:JMB_Newton_Z^10_-_A_=_0_(Tipus=_5010)(_1600x_1200)_.00001_.00001_1_3_7_Pal=_0_1_Fc=_0_1_(Iter=_100)Seg=_117.jpg| Other fractals where potential and trigonometric functions are multiplied. File:JMB_Newton_Z^2_Sin(Z)-_A_=_0_(Tipus=_5209)(_1600x_1200)_.00001_.00001_1_1_7_Pal=_5_7_Fc=_0_1_(Iter=_600)Seg=_54.jpg| File:JMB_Newton_Z^2_Sin(Z)-_A_=_0_(Tipus=_5209)(_1600x_1200)_.00001_.00001_1_1_7_Pal=_5_4_Fc=_0_1_(Iter=_95)Seg=_57.jpg| File:JMB_Newton_Z^3_Sin(Z)-_A_=_0_(Tipus=_5210)(_1600x_1200)_.00001_.00001_1_1_7_Pal=_5_8_Fc=_0_1_(Iter=_700)Seg=_65.jpg| File:JMB_Newton_Z^4_Sin(Z)-_A_=_0_(Tipus=_5211)(_1600x_1200)_.00001_.00001_1_1_7_Pal=_5_6_Fc=_0_1_(Iter=_900)Seg=_124.jpg| File:JMB_Newton_Z^4_Sin(Z)-_A_=_0_(Tipus=_5211)(_1600x_1200)_.00001_.00001_1_1_7_Pal=_5_3_Fc=_0_1_(Iter=_270)Seg=_80.jpg| File:JMB_Newton_Z^5_Sin(Z)-_A_=_0_(Tipus=_5212)(_1600x_1200)_.00001_.00001_1_1_7_Pal=_5_4_Fc=_0_1_(Iter=_500)Seg=_206.jpg| File:JMB_Newton_Z^6_Sin(Z)-_A_=_0_(Tipus=_5213)(_1600x_1200)_.00001_.00001_1_1_7_Pal=_5_5_Fc=_0_1_(Iter=_1000)Seg=_332.jpg| File:JMB_Newton_Z^6_Sin(Z)-_A_=_0_(Tipus=_5213)(_1600x_1200)_.00001_.00001_1_1_7_Pal=_5_5_Fc=_0_1_(Iter=_1000)Seg=_220.jpg|


Nova fractal
The Nova fractal invented in the mid 1990s by Paul Derbyshire, is a generalization of the Newton fractal with the addition of a value at each step:

z_{n+1}=z_n- a \frac{p(z_n)}{p'(z_n)} + c = G(a, c, z)

The "Julia" variant of the Nova fractal keeps constant over the image and initializes to the pixel coordinates. The "Mandelbrot" variant of the Nova fractal initializes to the pixel coordinates and sets to a critical point, where

\frac{\partial}{\partial z} G(a, c, z) = 0.

Commonly-used polynomials like or lead to a critical point at .


Implementation
In order to implement the Newton fractal, it is necessary to have a starting function as well as its derivative function:

\begin{align} f(z) &= z^3 - 1 \\ f'(z) &= 3z^2 \end{align}

The three roots of the function are

z = 1,\ -\tfrac12 + \tfrac{\sqrt 3}{2}i,\ -\tfrac12 - \tfrac{\sqrt 3}{2}i

The above-defined functions can be translated in as follows: // z^3-1 float2 Function (float2 z) {

return cpow(z, 3) - float2(1, 0); // cpow is an exponential function for complex numbers
     
}

// 3*z^2 float2 Derivative (float2 z) {

return 3 * cmul(z, z); // cmul is a function that handles multiplication of complex numbers
     
} It is now just a matter of implementing the Newton method using the given functions. float2 roots3 = // Roots (solutions) of the polynomial {
float2(1, 0),
float2(-.5, sqrt(3)/2),
float2(-.5, -sqrt(3)/2)
     
};

color colors3 = // Assign a color for each root {

   red,
   green,
   blue
     
}

For each pixel (x, y) on the target, do: {

zx = scaled x coordinate of pixel (scaled to lie in the Mandelbrot X scale (-2.5, 1))
   zy = scaled y coordinate of pixel (scaled to lie in the Mandelbrot Y scale (-2, 1))
     

   float2 z = float2(zx, zy); // z is originally set to the pixel coordinates
     

for (int iteration = 0;
     iteration < maxIteration;
     iteration++;)
{
	z -= cdiv(Function(z), Derivative(z)); // cdiv is a function for dividing complex numbers
     

       float tolerance = 0.000001;
     

	for (int i = 0; i < roots.Length; i++)
	{
	    float2 difference = z - roots[i];
     

		// If the current iteration is close enough to a root, color the pixel.
		if (abs(difference.x) < tolerance && abs (difference.y) < tolerance)
		{
			return colors[i]; // Return the color corresponding to the root
		}
	}
     

   }
     

   return black; // If no solution is found
     
}


See also


Further reading

Page 1 of 1
1
Page 1 of 1
1

Account

Social:
Pages:  ..   .. 
Items:  .. 

Navigation

General: Atom Feed Atom Feed  .. 
Help:  ..   .. 
Category:  ..   .. 
Media:  ..   .. 
Posts:  ..   ..   .. 

Statistics

Page:  .. 
Summary:  .. 
1 Tags
10/10 Page Rank
5 Page Refs
3s Time